#pragma once
#include "IBuddylist.h"
#include <map>

typedef std::map<CString,BUDDY_INFO *>	mapBuddyinfos;
class CBuddylist:public IBuddylist
{
public:
	CBuddylist(void);
	~CBuddylist(void);

	virtual HRESULT AddItem(BUDDY_INFO	&info) ;
	virtual HRESULT get_counnt(int &nCount) ;
	virtual HRESULT get_itemAt(int nPos,BUDDY_INFO &Info);

private:
	void CopyBuddyInfo(BUDDY_INFO &dest,const BUDDY_INFO src);

private:
	mapBuddyinfos			m_mapBuddyInfos;
};
